import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/auth/wechat/` + url, ...arg)
export default {
	// B端获取图片验证码
	getOAuthUrl(state) {
		return request(`getOAuthUrl/${state}`, null, 'get')
	},
	checkScanStatus(state) {
		return request(`checkScanStatus/${state}`, null, 'get')
	},
	// B端获取手机验证码
	doLogin(code, state) {
		return request(`doLogin?code=${code}&state=${state}`, null, 'get')
	}
}
